package com.alinu.workbench.service;

import com.alinu.vo.PaginationVO;
import com.alinu.workbench.domain.Tran;
import com.alinu.workbench.domain.TranHistory;

import java.util.List;
import java.util.Map;

/**
 * @author chenzuwei
 * @date 2021/3/20
 * @description
 */
public interface TranService {
    boolean createSimpleTransaction(Tran tran);

    PaginationVO<Tran> getTransList(Map<String, Object> params);

    boolean createTransaction(Tran tran, String customerName);

    Tran findTranById(String id);

    List<TranHistory> getTranHistoryList(String tranId);

    boolean changeStage(Tran tran);

    Map<String, Object> getTransCharts();
}
